CC := g++  
FLAGS := -std=c++11 -w
INC_DIR := ./include
SRC_DIR := ./src
BIN_DIR := ./bin



ALL: clean $(BIN_DIR)/server

$(BIN_DIR)/server:$(SRC_DIR)/Global.cpp  $(SRC_DIR)/TcpServer.cpp $(SRC_DIR)/MysqlConnectionPool.cpp $(SRC_DIR)/RedisClient.cpp $(SRC_DIR)/main.cpp
	$(CC) $(FLAGS) -I$(INC_DIR) $^ -o $@  -lpthread -lmysqlclient -lhiredis 

clean:
	rm -f $(BIN_DIR)/server


.PHONY: clean